<%-- 
    Document   : popupBienesASubastar
    Created on : 03/02/2012, 12:08:35 PM
    Author     : czela
--%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ page language="java" contentType="text/html;UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <script type="text/javascript" src="/Fonafe-Bienes/js/jquery.min.js"></script>
        <script src="/Fonafe-Bienes/js/jquery.colorbox.js" type="text/javascript"></script>
        <script type="text/javascript" src="/Fonafe-Bienes/js/jsindex.js"></script>
        <link href="/Fonafe-Bienes/css/default.css" type="text/css" rel="stylesheet" />
        <link href="/Fonafe-Bienes/css/colorbox.css" type="text/css" rel="stylesheet" />
		 <!--[if IE]>
		<script type="text/javascript" src="/Fonafe-Bienes/js/jforie.js"></script>
		<link href="/Fonafe-Bienes/css/forie.css" type="text/css" rel="stylesheet" />
	<![endif]-->
    </head>
    <body>
        <script type="text/javascript">
            function enviar(){
                document.form_add.action = '<s:url action="bienesSelected" />';
                document.form_add.submit();
                window.opener.setDespachar();
                this.close();
            }
        </script>
        <form name="form_add" id="form_add" method="post" action="">
            <div class="contenido_grilla">
                <center><s:property value="mensajeOk"/></center>
                <s:if test="%{#session.listaBienesAAsignar.size() > 0}">
                <a href="javascript:void(0)" onclick="enviar();" Class="botones_funciones position_r_centro">Agregar</a>

                <table cellpadding="0" cellspacing="0" class="tabla_bandeja">
                    <thead>
                        <tr>
                            <th><span class="bg1"></span>Bien</th>
                            <th>Descripcion</th>
                            <th>Fecha</th>
                            <th>Precio</th>
                            <th><span class="bg2"></span>Seleccion</th>
                        </tr>
                    </thead>
                    <tbody id="bodys_center">
                        <s:iterator value="#session.listaBienesAAsignar" var="beanBien">
                        <tr>
                            <td>
                                <s:property value="nombre" />
                                <br>
                                <s:url action="verFotoPrincipalBien" id="verFotoPrinc">
                                    <s:param name="idBien" value="id"></s:param>
                                </s:url>
                                <s:if test="%{fotoPrincipal != null}">
                                    <img src="Fonafe-Bienes/struts/verFotoPrincipalBien?idBien=<s:property value="id" />" alt="" style="max-width: 120px; max-height: 90px;" width="120px" height="90px"/>
                                </s:if>
                            </td>
                            <td>
                                <s:property value="ubigeo"/>
                                <br>
                                <s:property value="direccion"/>
                            </td>
                            <td><s:date name="fechaVencimiento" format="MMMMMMMMMM dd, yyyy"/></td>
                            <td>
                                <s:if test="%{tipoMoneda == 'soles'}">
                                    <s:set name="tipCoin">S/.</s:set>
                                </s:if>
                                <s:elseif test="%{tipoMoneda == 'dolares'}">
                                    <s:set name="tipCoin">$</s:set>
                                </s:elseif>
                                <s:elseif test="%{tipoMoneda == 'euros'}">
                                    <s:set name="tipCoin">?</s:set>
                                </s:elseif>
                                <s:property value="tipCoin"/><s:property value="precio"/>
                            </td>
                            <td>
                                <input type="checkbox" name="bienesSelected" value="<s:property value="id"/>"/>
                            </td>
                        </tr>
                       </s:iterator>
                    </tbody>
                </table>
                <br/>
                <br/>
                <br/>
              </s:if>
            </div>
        </form>
    </body>
</html>
